<!DOCTYPE html>
<html>
<head>
	<meta charset="utf-8">
	<title>登录</title>
	<!-- 最新版本的 Bootstrap 核心 CSS 文件 -->
	<!-- 最新的 Bootstrap 核心 JavaScript 文件 -->
	<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/3.4.1/css/bootstrap.min.css" integrity="sha384-HSMxcRTRxnN+Bdg0JdbxYKrThecOKuH5zCYotlSAcp1+c8xmyTe9GYg1l9a69psu" crossorigin="anonymous">
	<script src="js/jquery-3.6.0.min.js"></script>
	<script src="https://stackpath.bootstrapcdn.com/bootstrap/3.4.1/js/bootstrap.min.js" integrity="sha384-aJ21OjlMXNL5UyIl/XNwTMqvzeRMZH2w8c5cRVpzpU8Y5bApTppSuUkhZXN0VxHd" crossorigin="anonymous"></script>
	<style>
		.dv1{
			margin-top: 10%;
		}
		.div2{color: crimson;
			font-size: 3.125rem;}
	</style>
</head>
<body>
<div class="container">
	<div class="row  div2 clearfix">
		<div class="col-md-12 column">
			<h1 class="text-center" >
				喜来乐相亲网欢迎您
			</h1>
		</div>
	</div>
</div>
<div class="container">
	<div class="row dv1 clearfix">
		<div class="col-md-7 column">
			<img alt="140x140" style="width: 100%;" src="img/d1.jpg" />
		</div>
		<div class="col-md-3 column">
			<form class="form-horizontal" role="form" id="fm1"style="margin-top: 20%;">
				<div class="form-group">
					<label for="ip1" class="col-sm-2 control-label">账号:</label>
					<div class="col-sm-10">
						<input type="text" class="form-control"  name="name" id="ip1"placeholder="请输入账号" />
					</div>
				</div>
				<div class="form-group">
					<label for="ip2" class="col-sm-2 control-label">密码:</label>
					<div class="col-sm-10">
						<input type="password" class="form-control" name="password" id="ip2" placeholder="请输入密码"/>
					</div>
				</div>
				<div class="form-group">
					<div class="col-sm-offset-2 col-sm-10">
						<div class="checkbox">
							<label><input type="checkbox" /> 记住账号</label>
						</div>
					</div>
				</div>
				<div class="form-group">
					<div class="col-sm-offset-2 col-sm-10">
						<button type="button" id="bt1" class="btn btn-default" style="width: 100%;"> 登录</button>
					</div>
				</div>
				<div class="form-group">
					<div class="col-sm-offset-2 col-sm-5">
						还没账号，<a href="register.html">点击注册</a>
					</div>
					<div class="col-sm-5" style="text-align:right">
						忘记密码，<a href="findpass.html">找回密码</a>
					</div>
				</div>

			</form>
		</div>
	</div>
	<div class="row clearfix">
		<div class="col-md-12 column">
			<p>
				<em>喜来乐</em> 是一个优质美女的相亲网站 <strong>美女众多 优质资源</strong> 一定有你的选择，在广大男同胞面前有很好的口碑 <small>喜来乐</small> 相亲网。
			</p>
		</div>
	</div>
</div>
<script>
	$(function () {
		$("#bt1").click(function () {
			$.post("/api/user/login",$("#fm1").serialize(),function (res) {
				if (res == 200){
					//登录成功
					location.href="index.html";

				}else{
					alert("亲登录失败请重新登录")
				}


			})
		})
	});
</script>
</body>
</html>
